<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加内容</title>
<load href="__PUBLIC__/css/bootstrap.min.css" />
<import type='css' file="css.main" />
<load href="__PUBLIC__/js/jquery-1.9.1.min.js" />
<load href="__PUBLIC__/js/jquery-ui.min.js" />
<import type='js' file="js.main" />
<script type="text/javascript">
    $(function(){

    })
</script>
</head>

<body id="body">
<div class="main-frame">
    <div class="position">大拜年 > 添加视频</div>
    <!-- 图片资源开始 -->
    <div class="floatBackground" id="floatBackground" style="display: none;">
        <div class="bounced">
            <label class="closeImgResurces">X</label>
            <iframe id="imgResourcesiframe" src="{:rtrim(U('Upload/index'),'.html')}" width="750" height="465" frameborder="0" scrolling="auto"></iframe>
        </div>
    </div>
    <!-- 图片资源结束 -->
    <div class="addobject">
        <div class="obj-form">
            <form name="form1" id="form1" action="<if condition="$edit eq 1">{:U('Bn/sedit')}<else />{:U('Bn/add')}</if>" method="post" class="form-inline">
                <input type="hidden" name="editid" value="{$data['id']}" />
                <ul>
                    <li>
                        <label class="fl tle">标题：</label>
						<span class="fl cnt">
						<input name="bn_name" class="form-control" placeholder="人名" value="{$data['bn_name']}"><em>*</em>
						</span>
                    </li>
                    <li>
                        <label class="fl tle">职位：</label>
						<span class="fl cnt">
						<input name="bn_zhiwei" class="form-control" placeholder="职位" value="{$data['bn_zhiwei']}" style="width: 300px;">
						</span>
                    </li>
                     <!--<li>
                       <label class="fl tle">标语：</label>
                                           <span class="fl cnt">
                                           <input name="bn_title" class="form-control" placeholder="标语" value="{$data['bn_title']}" style="width: 450px;"><em>*</em>
                                           </span>
                   </li> -->
                    <li>
                        <label class="fl tle">短标题：</label>
						<span class="fl cnt">
						<input name="bn_shorttitle" class="form-control" placeholder="短标题" value="{$data['bn_shorttitle']}" style="width: 300px;">
						</span>
                    </li>
                    <li>
                        <label class="fl tle">缩略图：</label>
                        <span class="fl cnt"><input name="bn_pic" id="thumbimg" class="form-control" placeholder="缩略图" value="{$data['bn_pic']}" style="width: 450px;"><a class="browse" f='thumbimg'>浏览···</a><em>*</em></span>
                    </li>
                    <if condition="$data['bn_pic'] neq ''">
                    <li style="margin-top: -15px;">
                        <label class="fl tle">&nbsp;</label>
                        <span class="fl cnt"><img src="{$data['bn_pic']}" height="80" /></span>
                    </li>
                    </if>
                    <li class="clickjump">
                        <label class="fl tle">跳转网址：</label>
						<span class="fl cnt">
						<input name="bn_jumplink" class="form-control" placeholder="跳转网址" value="{$data['bn_jumplink']}" style="width: 450px;">
						</span>
                    </li>
                    <li>
                        <label class="fl tle">年份选择：</label>
				    	<span class="fl cnt">
					    	<select name="year" class="template form-control">
                                <option value="2017">2017年</option>
                            </select>
                            <em>*</em>
				    	</span>
                    </li>
                    <li>
                        <label class="fl tle">分类选择：</label>
				    	<span class="fl cnt">
					    	<select name="type_id" class="template form-control">
                                <volist name="typelist" id="v">
                                <option value="{$v['id']}" <if condition="$data['type_id'] eq $v['id']">selected</if>>{$v['typename']}</option>
                                </volist>
                            </select>
                            <em>*</em>
				    	</span>
                    </li>
                    <li>
                        <label class="fl tle">优先级：</label>
						<span class="fl cnt"><input name="bn_weight" class="txtlength200" style="width: 100px;" placeholder="1" value="<if condition="$data['bn_weight'] neq ''">{$data['bn_weight']}<else />{$maxweight}</if>"> <font style="color: #999;">（越大越靠前）</font>&nbsp;&nbsp;&nbsp;&nbsp;
						浏览量：<input name="bn_pv" class="txtlength200" style="width: 100px;" value="<if condition="$data['bn_pv'] neq ''">{$data['bn_pv']}<else />{:sprintf("%0".strlen(3)."d", mt_rand(19999,59999))}</if>"></span>
                    </li>

                    <li class="oline"><span class="dividerline"></span></li>

                    <li>
                        <label class="fl tle">视频地址：</label>
				    	<span class="fl cnt">
					    	<textarea name="bn_videopath" class="form-control" placeholder="视频地址" style="width: 900px; height:56px;">{$data['bn_videopath']}</textarea><em>*</em>
				    	</span>
                    </li>
                    <li>
                        <label class="fl tle">资源描述：</label>
                        <span class="fl cnt"><textarea name="bn_description" style="width: 900px;" class="form-control" rows="3">{$data['bn_description']}</textarea></span>
                    </li>
                    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEditor/ueditor.config.js"></script>
                    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEditor/ueditor.all.min.js"> </script>
                    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/UEditor/lang/zh-cn/zh-cn.js"></script>
                    <li>
                        <label class="fl tle">详情内容：</label>
						<span class="fl cnt">
							<textarea name="bn_content" id="editor" style="width: 900px; height:200px; overflow: hidden;">{$data['bn_content']}</textarea>
							<script>var ue = UE.getEditor('editor');</script>
						</span>
                    </li>

                    <li><span class="dividerline"></span></li>

                    <li>
                        <label class="fl tle">状态：</label>
						<span class="fl cnt">
                            <if condition="$edit eq 1">
                                <input class="radio" type="radio" name="state" value="1" <if condition="$data['state'] eq 1">checked="checked"</if>> 开启
                                <input class="radio" type="radio" name="state" value="0" <if condition="$data['state'] neq 1">checked="checked"</if> style="margin-left:10px;"> 关闭
                            <else />
                                <input class="radio" type="radio" name="state" value="1" checked="checked"> 开启
                                <input class="radio" type="radio" name="state" value="0" style="margin-left:10px;"> 关闭
                            </if>
							<font style="color: #999; margin-right:15px;">（默认开启）</font>
                             	发布人：<input name="issuer" class="txtlength200" style="width: 100px; margin-right:15px;" placeholder="{$data['issuer']}" value='{$data['issuer']}' readonly="readonly">
                             	发布日期：<input name="pubdate" class="txtlength200" style="width: 160px;" placeholder="发布日期" <if condition="$edit neq 1">value="{:date('Y-m-d H:i:m')}"<else />value="{$data['pubdate']}"</if>>
						</span>
                    </li>
                    <li class="submit">
                        <label class="fl tle">&nbsp;</label>
                        <span class="fl cnt"><input type="submit" value="发 布" class="submitbtn" /> <a href="{:U('list')}">取消</a></span>
                    </li>
                </ul>
            </form>
        </div>
        <div class="obj-previewimg">
            <div class="instructions">
                <b>备注说明：</b><br>
                1、带有红色  “ * ” 项必填<br>
            </div>
        </div>
    </div>

</div>
</body>
</html>
